<?php /* Smarty version 2.6.19, created on 2013-02-27 18:08:02
         compiled from C:%5Cxampp%5Chtdocs%5Cudeal.in/Interfaces/templates/admin/comment/view_comments.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'C:\\xampp\\htdocs\\udeal.in/Interfaces/templates/admin/comment/view_comments.tpl', 88, false),array('modifier', 'count', 'C:\\xampp\\htdocs\\udeal.in/Interfaces/templates/admin/comment/view_comments.tpl', 130, false),array('modifier', 'date_format', 'C:\\xampp\\htdocs\\udeal.in/Interfaces/templates/admin/comment/view_comments.tpl', 134, false),array('modifier', 'truncate', 'C:\\xampp\\htdocs\\udeal.in/Interfaces/templates/admin/comment/view_comments.tpl', 135, false),array('function', 'sortorder', 'C:\\xampp\\htdocs\\udeal.in/Interfaces/templates/admin/comment/view_comments.tpl', 125, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['admin_header1'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['admin_header2'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['admin_leftsidebar'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php echo '<script type="text/javascript" src="'; ?><?php echo $this->_tpl_vars['siteroot']; ?><?php echo '/js/thick_js/thickbox.js"></script><script type="text/javascript" src="'; ?><?php echo $this->_tpl_vars['siteroot']; ?><?php echo '/js/ajax_page_url.js"></script><link rel="stylesheet" href="'; ?><?php echo $this->_tpl_vars['siteroot']; ?><?php echo '/templates/'; ?><?php echo $this->_tpl_vars['templatedir']; ?><?php echo '/css/thickbox_user.css" type="text/css" media="screen" />'; ?>

<?php echo '
<script type="text/javascript">
$(document).ready(function()
{
$("#checkall").click(function()
 	{
		var checked_status = this.checked;
		$("input[@type=checkbox]").each(function()
		{
			this.checked = checked_status;
			change(this);
		});
 	});
	$("input[@type=checkbox]").click(function()
 	{
		change(this);
 	});
function change(chk)
	{
		var $tr = $(chk).parent().parent();
		if($tr.attr(\'id\'))
		{
			if($tr.attr(\'class\')==\'selectedrow\' && !chk.checked)
				$tr.removeClass(\'selectedrow\').addClass(\'grayback\');
			else
				$tr.removeClass(\'grayback\').addClass(\'selectedrow\');
		}
	}

$("#checkall").click(function()
 	{
		var checked_status = this.checked;
		$("input[@type=checkbox]").each(function()
		{
			this.checked = checked_status;
			change(this);
		});
 	});
	$("input[@type=checkbox]").click(function()
 	{
		change(this);
 	});
function change(chk)
	{
		var $tr = $(chk).parent().parent();
		if($tr.attr(\'id\'))
		{
			if($tr.attr(\'class\')==\'selectedrow\' && !chk.checked)
				$tr.removeClass(\'selectedrow\').addClass(\'grayback\');
			else
				$tr.removeClass(\'grayback\').addClass(\'selectedrow\');
		}
	}
$("#msg").fadeOut(5000);
});
</script>
'; ?>

<!--middel panel starts -->
<div class="middel_panel">
<div class="breadcrumb"><a href="<?php echo $this->_tpl_vars['site_path']; ?>
/admin/blog/">Blog </a>&nbsp;&gt;&nbsp;View Blog</div>
<?php if ($this->_tpl_vars['msg_success']): ?><div align="center" id="msg" class="successMsg"><?php echo $this->_tpl_vars['msg_success']; ?>
</div><?php endif; ?>
	<div class="holdthisTop">
		<div name="frmAction" method="post" action="" id="frmAction">
		<table width="100%" cellspacing="0" cellpadding="0" border="0">
		<input type="hidden" id="blogid" value="<?php echo $_GET['blogid']; ?>
" />
		<input type="hidden" id="sorttype" value="" />
		<input type="hidden" id="sortord" value="" />
		<div align="right"><a href="<?php echo $this->_tpl_vars['site_path']; ?>
/admin/blog/view_blogs"><< Back To Blog</a></div>
		<tr>
			<td>
			<table>
				<tr>
				<td valign="top"><img src="<?php echo $this->_tpl_vars['site_mount_path']; ?>
/BlogImages/<?php echo $this->_tpl_vars['blog']->getThumbnail(); ?>
" height="90px" width="90px" ></td>
               	<td>&nbsp;&nbsp;&nbsp;</td>
                 </tr>
				<td valign="top">
				<table>
					<tr>
						<td align="left"><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['blog']->getTitle())) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : ucfirst($_tmp)); ?>
</strong></td>
					</tr>
                                	<!--<tr>
						<td colspan="2"><span class="strong">Description : </span></td>
					</tr>-->
					<tr align="center">
						<td align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['blog']->getDescription())) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : ucfirst($_tmp)); ?>
</td>
					</tr>
				</table>
			</td>
			</tr>	
			</table>
			</td>
		</tr>
		
		<tr>
			<td>
			<img src="<?php echo $this->_tpl_vars['site_images_path']; ?>
/icons/add.png" align="top"  alt="add" />&nbsp; 
			<a href="<?php echo $this->_tpl_vars['site_path']; ?>
/admin/comment/add_edit_comment/blog_id/<?php echo $this->_tpl_vars['blog']->getId(); ?>
"> Add Comment</a>
			</td>
		</tr>
		<br/>
		
		</table>
		<div id="ReplyDiv">
		<table width="100%" cellspacing="0" cellpadding="0">
	        <input type="hidden" name="hiddenvalue" id="hiddenvalue" value="<?php echo $this->_tpl_vars['hidden_user_sort_by']; ?>
">
	        <tr>
                    <td width="100%" valign="top" align="center" colspan="2">
 				    <form name="frmAction" method="post" action="<?php echo $this->_tpl_vars['site_path']; ?>
/admin/comment/update_comment_action" id="frmAction">
					   <input type="hidden" id="sorttype" value="" />
						<input type="hidden" id="sortord" value="" />
		
	<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="datagrid">

					<tr class="headbg">
						<td width="1%" align="center"><input type="checkbox" id="checkall" /></td>
						<th width="32%"><a href="<?php echo smarty_function_sortorder(array('sorttype' => 'title','sortord' => $this->_tpl_vars['ord']), $this);?>
"> Posted By</a></th>
					<th width="32%"><a href="<?php echo smarty_function_sortorder(array('sorttype' => 'module','sortord' => $this->_tpl_vars['ord']), $this);?>
"> Comment</a></th>
					<th width="32%" align="center"><a href="<?php echo smarty_function_sortorder(array('sorttype' => 'module','sortord' => $this->_tpl_vars['ord']), $this);?>
"> Action</a></th>
					
					</tr>
					<?php if (0 < count($this->_tpl_vars['comments'])): ?>
         			<?php $_from = $this->_tpl_vars['comments']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['comment']):
?>
         				<tr class="grayback" id="tr_<?php echo $this->_tpl_vars['comment']->getId(); ?>
">
							<td align="center" valign="top"><input type="checkbox" name="comment[id][]" value="<?php echo $this->_tpl_vars['comment']->getId(); ?>
" /></td>
							<td align="left" valign="top"><?php echo ((is_array($_tmp=$this->_tpl_vars['comment']->getCreatedOn())) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
							<td align="left" valign="top"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['comment']->getComment())) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : ucfirst($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, 50, "") : smarty_modifier_truncate($_tmp, 50, "")); ?>
</td>
							
							<td align="center" valign="top"><img src="<?php echo $this->_tpl_vars['site_images_path']; ?>
/icons/application_edit.png" align="top" alt="" /> <a href="<?php echo $this->_tpl_vars['site_path']; ?>
/admin/comment/add_edit_comment/id/<?php echo $this->_tpl_vars['comment']->getId(); ?>
" class="admintxt"><strong>Edit</strong></a></td>
						</tr>
					<?php endforeach; endif; unset($_from); ?>
						<tr>
							<td colspan="4">
								<strong><?php echo $this->_tpl_vars['mesg']; ?>
</strong>
							</td>
						</tr>
					<?php endif; ?>
					<tr>
					<td align="right"><img src="<?php echo $this->_tpl_vars['site_images_path']; ?>
/admin/arrow_ltr.gif" alt="" /></td>
					<td colspan="3" align="left">
						<table border="0" cellpadding="0" cellspacing="0" width="100%">
						<tr>
							<td width="10%">
								<select name="comment[action]" id="action">
									<option value="">--Action--</option>
									<option value="delete">Delete</option>
								</select>
							</td>
							<td align="left" width="6%"><span class="buttons"><input type="submit" name="submit" id="submit" value="Go" /></span></td>
						<td><span id="acterr" class="error"></span></td><td colspan="3" align="right"><?php if ($this->_tpl_vars['pgnation']): ?><?php echo $this->_tpl_vars['pgnation']; ?>
<?php endif; ?></td>
					</tr>					
				</table>
			            </td>
					</tr>
                                </table>
                            </form>
                        </td>
                    </tr>
                </table>
		</div>
<!--<?php if ($this->_tpl_vars['pgnation']): ?>
<div class="pagination">
	<div class="tabpaging leftfloat">
		<?php echo $this->_tpl_vars['pgnation']; ?>

	</div>
</div>
<?php endif; ?>-->
			</form>
		</div>
		</div>
	<!--middel panel ends -->
</div>
                  <!--main content ends -->
                  <!--content ends -->
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      </div>
    </div>

    <!--Banner ends -->
  </div>

  <!--    content area ends -->
<!--<script type="text/javascript">searchUser(<?php echo $_GET['page']; ?>
);</script>-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['admin_footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>